<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var i=1;
    var sum=0;
    while(i<=100){
        sum+=i;
        i++;
    }
    alert(sum);
</script>
</body>
</html>